package com.itzhigui.common.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品信息
 *
 * @author java1412
 * @since 2023-10-29 17:31:17
 */
public class Goods implements Serializable {
    private Integer id;
    /**
     * 商品名称
     */
    private String goodsName;
    /**
     * 商品价格(分)
     */
    private Integer price;
    /**
     * 商品封⾯图
     */
    private String goodsImg;
    /**
     * 概述
     */
    private String summary;

    /**
     * 创建时间
     */
    private Date createTime;

    public Goods() {
    }

    public Goods(Integer id, String goodsName, Integer price, String goodsImg, String summary, Date createTime) {
        this.id = id;
        this.goodsName = goodsName;
        this.price = price;
        this.goodsImg = goodsImg;
        this.summary = summary;
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getGoodsImg() {
        return goodsImg;
    }

    public void setGoodsImg(String goodsImg) {
        this.goodsImg = goodsImg;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", goodsName='" + goodsName + '\'' +
                ", price=" + price +
                ", goodsImg='" + goodsImg + '\'' +
                ", summary='" + summary + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
